package io.github.uicdb.et;

import io.github.uicdb.et.recipe.TurnInRecipeHandler;
import io.github.uicdb.et.recipe.TurnInRecipeHandlerType;
import io.github.uicdb.et.recipe.handler.AttachElementHandler;
import io.github.uicdb.et.recipe.handler.ToItemStackHandler;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

public class ModTurnInRecipeHandlerTypes {
    final static DeferredRegister<TurnInRecipeHandlerType<?>> REGISTER = DeferredRegister.create(ElementalTheory.TURN_IN_RECIPE_HANDLE_TYPE,ElementalTheory.MODID);
    public static final DeferredHolder<TurnInRecipeHandlerType<?>, TurnInRecipeHandlerType<AttachElementHandler>> ATTACH_ELEMENT = REGISTER.register("attach_element",()->
            new TurnInRecipeHandlerType<>(AttachElementHandler.CODEC));
    public static final DeferredHolder<TurnInRecipeHandlerType<?>, TurnInRecipeHandlerType<ToItemStackHandler>> TO_ITEM = REGISTER.register("to_item",()->
            new TurnInRecipeHandlerType<>(ToItemStackHandler.CODEC));
    public static void init(IEventBus modEventBus) {
        REGISTER.register(modEventBus);
    }
}
